<!--  分类模板 -->
<php>$categorylist=D('category')->field('id,title')->select();</php>
		 <div class="sidebar">
		 <ul class="list-group">
		 
          <li class="list-group-item active"><a href="{:U('Index/index')}" style="width: 100%"><i class="icon-th"></i> 文章分类</a> </li>
		  <foreach name='categorylist' item='clist'>		  
          <li class="list-group-item"><a href="{:U('Home/Index/category?id='.$clist['id'])}" ><i class="icon-edit"></i> {$clist.title}</a> </li>         
          </foreach>
        </ul>
</div>